//---------------------------------------------------------------------------

#ifndef TSelfControlH
#define TSelfControlH
#include <vector.h>
//---------------------------------------------------------------------------
class TControlItem
{
public:
	int CutNumber;
	float BeginTime;
	float EndTime;
};

class TControlRecords : public vector<TControlItem>
{
public:
	float __fastcall GetBeginTime(const int CutNumber, const float Time);
	void __fastcall SetBeginTime(const int CutNumber, const float Time);
	float __fastcall GetEndTime(const int CutNumber, const float Time);
	void __fastcall SetEndTime(const int CutNumber, const float Time);
private:

};

class TSelfControl : public TControlRecords
{
public:
	bool IsSelfControl;
	int BigCutQuantity;
	int WeightClassLevelQuantity;
	vector<float> ControlTime;
	vector<TControlItem> ControlTimeRecord;

	__fastcall TSelfControl();
	bool __fastcall IsBigCut(const int WagonQuantity);
	bool __fastcall Expire(const int CutNumber, const float NowTime);
private:
};

#endif
